package plots;


public class LinearPlotRegenerator implements PlotRegenerator {

	/**
	 * @see PlotFactory
	 */
	protected LinearPlotRegenerator() {}
	
	
	@Override
	public double regenerate(Plot plot) {
		double yield = plot.yield + (plot.maxYield - plot.yield) * 0.1D;
		return plot.yield = Math.min(plot.maxYield, yield);
	}
}
